package com.qpf.spring.cloud.web.admin.service;

import com.qpf.spring.cloud.web.admin.service.hystrix.DemoServiceHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Service
@FeignClient(value = "SPRING-CLOUD-DEMO-SERVICE-ADMIN", fallback = DemoServiceHystrix.class)
public interface DemoService {
    @GetMapping("demo")
    String demo(@RequestParam(value = "message", required = false) String message);
    @GetMapping("users")
    String users();
}
